@extends('layouts.app')

@section('content')
<div class="container">
    <div class="row">
        <div class="col-md-8 col-md-offset-2">
            <div class="panel panel-default">
                <div class="panel-heading">收支明细</div>
                <div class="panel-body">
                    @foreach($details as $detail)
                    <div class="panel panel-default">
                        <div class="panel-heading">{{ $detail->typename() }} <span class="right">{{ $detail->created_at }}</span></div>
                        <div class="panel-body">
                            <table class="table table-striped table-bordered table-condensed ">
                                <tr><td>金额</td><td>￥{{ $detail->money }}</td></tr>
                                <tr><td>余额</td><td>￥{{ $detail->balance }}</td></tr>
                                <tr><td>说明</td><td>{{ $detail->note }}</td></tr>
                            </table>
                        </div>
                    </div>
                    @endforeach
                    <!-- <div class="panel panel-default">
                        <div class="panel-heading">操作:下单</div>
                        <div class="panel-body">
                            <table class="table table-striped table-bordered table-condensed ">
                                <tr><td>日期</td><td>2016-10-08 16:45</td></tr>
                                <tr><td>账户余额</td><td>9986080.50</td></tr>
                                <tr><td>交易金额</td><td>-10000</td></tr>
                            </table>
                        </div>
                    </div> -->
                    <div align="center">
                    {!! $details->render() !!}
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection